<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app"></div>

<script src="axios.min.js"></script>
<script src="vue.js"></script>
<script>
    var vm = new Vue({
        el:'#app',
    })

    axios.get('http://127.0.0.1:8000/axios_get/',{params:{"name":"laowang", "age":20}}).then(function (response) {
        console.log(response.data)
    }).catch(function (error) {
        console.log(error)
    })

    axios.post('http://127.0.0.1:8000/axios_post/', {"name":'lisi', "age":18}).then(function (response) {
        console.log(response.data)
    })


</script>
</body>
</html>